<template>
  <div class="">
    <h2>我是User</h2>
    <p>我的id为{{$route.params.id}}</p>
  </div>
</template>

<script>
export default {
  name: 'App',
  components: {

  },
  data () {
    return {
    };
  },
  computed: {

  },
  created () {
    // console.log(this.$route.params.id);
    // this.$route是当前正在活跃的路由
  },
  mounted () {

  },
  methods: {

  },
};
</script>

<style scoped>
</style>
